package com.lry.basic.algorithm.flow.windows;

import lombok.Data;

@Data
public class Node {
    private long time;

    private long counter;

    public Node next;

    private int id;

    public Node(Node next){
        this.next = next;
    }
    public Node(){}

    public Node(long time, long counter, int id) {
        this.time = time;
        this.counter = counter;
        this.id = id;
    }


    public void addCounter() {
        this.counter = this.counter+1;
    }

    @Override
    public String toString() {
        return "Node{" +
                "time=" + time +
                ", counter=" + counter +
                ", id=" + id +
                '}';
    }
}
